<div class="main-content">
    <h1><a name="Alerts"></a>Alerts</h1>

            <hr/>
            <h4 class="operation-heading"><a name="getPublisherAlertTypes"></a>Get the list of API Publisher alert types.
</h4> <code>GET https://apis.wso2.com/api/am/publisher/v1/alert-types</code>
            <p class="marked"></p>

            <p class="marked">This operation is used to get the list of supportd alert types for the &#39;publisher&#39; agent.
</p>

            <h4 class="section-heading">OAuth 2.0 Scope</h4>
                <code>apim:pub_alert_manage</code>

            <h4 class="section-heading">
                Examples
            </h4>
            <h4 class="section-heading">
                <u></u>
            </h4>
                <div class="pointer" data-toggle="collapse" data-target="#request-getPublisherAlertTypes">
                    <h5 class="section-heading">
                        Request
                            <span class="glyphicon glyphicon-collapse-down" aria-hidden="true"></span>
                    </h5>
                </div>
                    <div id="request-getPublisherAlertTypes"class="pre collapse in"><code class="json">GET https://localhost:9443/api/am/publisher/v1/alert-types HTTP 1/1
Authorization: Bearer eff01a97-4dc0-3542-a184-75aecf355ec2
</code></div>

                <div class="pointer" data-toggle="collapse" data-target="#response-getPublisherAlertTypes">
                    <h5 class="section-heading">
                        Response
                            <span class="glyphicon glyphicon-collapse-down" aria-hidden="true"></span>
                    </h5>
                </div>
                    <div id="response-getPublisherAlertTypes" class="pre collapse in"><code class="json">HTTP 1/1 200 OK
Content-Type: application/json

{
  &quot;count&quot; : 2,
  &quot;alerts&quot; : [ {
    &quot;id&quot; : 3,
    &quot;name&quot; : &quot;AbnormalRequestTime&quot;,
    &quot;isRequireConfiguration&quot; : true
  }, {
    &quot;id&quot; : 4,
    &quot;name&quot; : &quot;AbnormalResponseTime&quot;,
    &quot;isRequireConfiguration&quot; : true
  } ]
}</code></div>

                <h5 class="section-heading">CURL</h5>
                    <div class="pre"><code class="bash">curl -k -v -X GET &#39;https://localhost:9443/api/am/publisher/v1/alert-types&#39; -H &#39;Authorization: Bearer eff01a97-4dc0-3542-a184-75aecf355ec2&#39; </code></div>


            <h4 class="section-heading" id="scroll-to">Parameters</h4>
            <table class="table table-hover">
                <colgroup>
                    <col style="width: 10%;"/>
                    <col style="width: 20%;"/>
                    <col style="width: 40%;"/>
                    <col style="width: 10%;"/>
                    <col style="width: 20%;"/>
                </colgroup>
                <thead>
                <tr class="active">
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                    <th>Schema</th>
                    <th>Default</th>
                </tr>
                </thead>
            </table>

            <h4 class="section-heading">Responses</h4>

            <table class="table table-hover">
                <colgroup>
                    <col style="width: 15%;"/>
                    <col style="width: 70%;"/>
                    <col style="width: 15%;"/>
                </colgroup>
                <thead>
                <tr class="active">
                    <th>HTTP Code</th>
                    <th>Description</th>
                    <th>Schema</th>
                </tr>
                </thead>
                <tbody>
                    <tr>
                        <td class="parameter"><p class="marked">200</p></td>
                        <td class="parameter"><p class="marked">OK. The list of publisher alert types are returned. </p></td>
                        <td class="parameter">
                            <span class="parameter">
                                    <a href="#!/models#AlertTypesList">AlertTypesList</a>
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td class="parameter"><p class="marked">500</p></td>
                        <td class="parameter"><p class="marked">Internal Server Error. An internal server error occurred while retrieving the alert types. </p></td>
                        <td class="parameter">
                            <span class="parameter">
                                    <a href="#!/models#Error">Error</a>
                            </span>
                        </td>
                    </tr>
                </tbody>
            </table>
</div>
